boolean check instead of string check