Refactored if statement