Added ... array handling to filter
Added more checks for the args arrays