Allow zero length links

    filter_var($args['length'], FILTER_VALIDATE_INT, array('options' => array('min_range' => 0)))

That might belong on http://phpsadness.com/

LGTM :cry: