I don't think this will work.  Where is the function `json_encode_echeck` defined?