def _is_valid_scan(self):
if self._scan is not None:<EOL><INDENT>return self._scan<EOL><DEDENT>if self._ordering:<EOL><INDENT>return False<EOL><DEDENT>if self._facets:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Detect if a type
:return: a boolean