added 'hasChars' utility method (closes #347)