Avoid undefined index errors.