parse tags added, broken out from parse method
extracted array code validation to another method