suppress 'invalid argument foreach' warning