private static function clearCreatedElement(array $contentArray) { foreach (array_reverse($contentArray) as $href => $callback) { $callback(); } }