Check phaseNames so they are included in phaseList
function checkPhaseNames input String[:] phaseNames; output Boolean checkOk; end checkPhaseNames;