the helper function (CheckBusinessHours) will not have context,event and callback as it is helper function. Replace it with the param that you want to pass.
Ref link below
Twilio docs