Verhindern Sie undefined Offset PHP

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