If you have a default for this in the model as per my other comment the isDefined() check is not needed