@abinoda I added function to throw an error if the chair array is empty.