added returnError and toFallback helpers to arrayOf and isInList checks