Add safety net

WE should not asume the panels attribute is evaluable as a booleam