Prevent "Undefined index" notices.