Simplified the 'if' statement.