Protect against trying to iterate over nothing.