Replace model schema's isEmpty() with hasDefinition() to allow to define an empty schema
Merge pull request #1164 from njam/issue-1164

Allow for empty model schema