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

If you save an blank/empty rule, it could get serialized as an empty hash {}  (depending on your code).

So a more robust solution should be able to handle empty hashes as well, and treat them the same as if they were blank/empty/nil.