Removed inequality check in if statement