If schedule is a hash on the model, then need to check for empty hash as well
Merge pull request #36 from asgeo1/fix_for_schedule_as_hash

If schedule is a hash on the model, then need to check for empty hash as well