public function getMetaValue($attribute, $attributeValue) { foreach ($this->meta as $item) { // if the key and the value match we return the item if (isset($item[$attribute]) && $item[$attribute] == $attributeValue) { return $item; } } }