Check for canvas before drawing