Corrected the function getFlows, i think we also should validate ALL the fields in case the give "None" (aka no Flows are present in the switch)