if BLOCK_CONTEXT_KEY is contained in render_context and call to the method get_block with an argument self.name from the object,
if ( BLOCK_CONTEXT_KEY in render_context and render_context [ BLOCK_CONTEXT_KEY ] . get_block ( self . name ) is not None ) :