Change the code structure for conditional checks.