added handling for availability endpoint returning empty object