public static function indexOf($array, $item)
    {
        if (is_array($array))
            return ($key = array_search($item, $array)) !== false ? $key : -1;

        $found = -1;
        $search = $item;
        static::each($array, function($item, $key) use ($search, & $found) {
            if ($item == $search) {
                $found = $key;
                return static::BREAKER;
            }
        });

        return $found;
    }