public static bool VerifyIfArraysArePassedAsParameters(Environments environments, IList <Expression> actualParameters) { return(actualParameters.OfType <IdentifierExpression>().Any(x => { var identifier = environments.GetLocal(x.Reference); if (identifier != null && identifier.IsArray) { return true; } return false; })); }