diff --git a/php/relate/class-relationship.php b/php/relate/class-relationship.php index 8ae352110..072d7dd52 100644 --- a/php/relate/class-relationship.php +++ b/php/relate/class-relationship.php @@ -117,6 +117,19 @@ public function __get( $key ) { return $return; } + /** + * Check the existence of a relationship data value. + * + * @param string $key The key. + * + * @return bool + */ + public function __isset( $key ) { + $data_cache = $this->get_data(); + + return isset( $data_cache[ $key ] ); + } + /** * Set the save on shutdown flag. */