Don't call max() on empty list