Avoid warning "Invalid argument supplied for foreach()"