VE-1165 Modify script to enable VisualEditor on non-WAM wikis

Would it cover the case of WAM wiki which have VE disabled? (lyrics for instance?)
Can this logic, and logic for excluded wikis be simplified? It seems to be that you could check at the beginning of the body of the loop if current wiki is either in the excluded array or WAM array and simply skip (continue).