trying to determine if a route param is empty or not to apply a filter with it correctly