check if widget has .geometry() method