ignore undefined index on output data