Boolean check optimized.