Fixing foreach loop when includes variable is not set