Reverse this if statement and throw the exception if it is entered. This enables us to remove the else and reduce complexity