Check if the expander is expanded for print the data