To determine cf , am not sure of inbuilt method you can add custom method after checking isasset and iterating the path and check if it contains cq:model property.
Resource data = fragmentResource.getChild(JCR_CONTENT + "/data");if (data == null || data.getValueMap().get("cq:model") == null) { }
Tha...