Assign the value before checking for empty, otherwise the __get method is not triggered