if ($id === false) {
            throw new InvalidArgumentException("An invalid category ID was provided"); 
        }