if ($maybevalue->{'is-valid'}) { ... } else { report the problem somehow, maybe return another maybevalue from the current procedure }