protected static function getElementKey($element) { if (is_int($element) || is_string($element)) { return $element; } return md5(serialize($element)); }