To check if panel exists  prior to checking its attributes.