only filter by extension if has extension