MAINT: use isMaskedArray instead of is_masked to check type
Merge pull request #3998 from argriffing/is-masked-usage

MAINT: use isMaskedArray instead of is_masked to check type