Prevent PHP warnings due to not checking existence of array indices