Evitar PHP de compensación indefinida

You can check by isset keyword:
example: 
isset($test[0])
Umesh Ghimire