avoid throwing notices for undefined index