no more php warnings on empty foreach arrays