Only try to match if there is actually something to match