function that returns true if the workbook is open and false if it's closed