Refined exception logic
Condensed exception logic, added PCRE exceptions
Array operations support optional parameters