Remove useless if condition