Replace call to Model:fields/0 to check with the module attribute "fields" instead