added $use_keys argument to array_filter()