Prevent warning message if trying to access undefined index