Bugfix: The method has_value cannot be called on $mydata (of type null).