inline local variable
slug will be nil if not present, so can assign and check in one call