Extracted isSEXP (refactoring).