switch to NROW to check whether we have filters of each type, works for vectors too in case jsonlite outputs those