Remove internal use of isempty().