Move find availability code into a standalone method and solve booking conflict