src/Utilities/Arrays.php
public static function isFirstElement(array $array, $element, $firstLevelOnly = true)
    {
        $firstElement = self::getFirstElement($array, $firstLevelOnly);

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

        return $element === $firstElement;
    }
public static function isFirstElement ( array $ array , $ element , $ firstLevelOnly = true ) { $ firstElement = self :: getFirstElement ( $ array , $ firstLevelOnly ) ; return $ element === $ firstElement ; }
Returns information if given element is the first one

@param array $array          The array to get the first element of
@param mixed $element        The element to check / verify
@param bool  $firstLevelOnly (optional) If is set to true, first element is returned. Otherwise - totally
first element is returned (first of the First array).
@return bool
Returns information if given element is the first one