Simplified if condition