Remove a useless if condition