Added .ValidArrayDeclaration method to Utils, including a new exception