I'm not sure what what the nicest solution is, but this line would
tell you if the model allows the field to be null or not:
If that returns false, then that field cannot be null
So maybe make a helper based on that?
Hope that helps in some way