bugfix - splitTables() attempted to preg_match an array. Added is_array.