check bool type