better way to check for a context
a layouts parent *can* change, it turns out