And just so you know, these kinds of check are usually much more frequent in debug builds than production builds (for obvious reasons).

This is why you usually want to code in debug.