slug could be set to an empty string, so check this