typeof condition for check's callback function