Why do you need to know if the site has slots ? if it is production slot, you should always pass the deleteallslots flag.