getComponents(); if (array_key_exists('VG', $components) && $components['VG'] > 0) { $mixed[] = new MeasuredIngredient("VG", null, "VG100", Base::MASS_VG, 100, $volume); } if (array_key_exists('PG', $components) && $components['PG'] > 0) { $mixed[] = new MeasuredIngredient("PG", null, "PG100", Base::MASS_PG, 100, $volume); } return $mixed; } }