<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def try_component(self, entity: int, component_type: Type):
 """Try to get a single component type for an Entity. This method will return the requested Component if it exists, but will pass silently if it does not. This allows a way to access optional Components that may or may not exist. :param entity: The Entity ID to retrieve the Component for. :param component_type: The Component instance you wish to retrieve. :return: A iterator containg the single Component instance requested, which is empty if the component doesn't exist. """

            if component_type in self._entities[entity]:
                yield self._entities[entity][component_type]
            else:
                return None