Fixes #8933 simple renaming

Refactored _is_sequence to is_sequence