This line seems more complex that it needs to be. Why not testing for `hasattr(gc, 'draw_marker_at_points')` and computing the result only then?