Avoid annoying Array key does not exist error