Remove useless boolean