provide a default to avoid undefined index notices