A boolean check fixed