Switch unless to if for readability