Removed typeof check for bool function