If `$args` is an empty array - a simple `if (!$args) { return $callback(); }` is enough. The function `count` will be needed only after this check ;)