sh compatible boolean check