`connection.panels` has a `.getByCid()` function that does what you're doing here. Be easier to use this function, just check it returns something before calling its show function.