Remove useless if main check