Refactor is_extended_* methods into one