filter name chain elements that are not present