public static function isFirstElement(array $array, $element, $firstLevelOnly = true)
    {
        $firstElement = self::getFirstElement($array, $firstLevelOnly);

        return $element === $firstElement;
    }