Removed redundant if statement.