added a checker for boolean. Not sure about number.