diff --git a/includes/entity.wrapper.inc b/includes/entity.wrapper.inc index 3ba66ae..800fe94 100644 --- a/includes/entity.wrapper.inc +++ b/includes/entity.wrapper.inc @@ -422,16 +422,16 @@ class EntityStructureWrapper extends EntityMetadataWrapper implements IteratorAg } /** - * Safely checks if the given child exists. + * Safely checks if the given property exists. * * @param $name * The name of the child to check. * @return bool * TRUE if the child exists, FALSE if it does not. */ - public function hasChild($name) { + public function hasProperty($name) { try { - $this->get($name); + $this->getPropertyInfo($name); return TRUE; } catch (EntityMetadataWrapperException $e) {