if (!is_array($args)) {
            throw new Exception("Cannot filter jobs - incorrect filter given");

            return false;
        }