public static function first($collection = null, $n = null)
    {
        if ($n === 0) {
            return array();
        }
        if (is_null($n)) {
            return current(array_splice($collection, 0, 1, true));
        }
        return array_splice($collection, 0, $n, true);
    }