Removed a redundant if statement