Removed unnecessary condition in if statement