The function getPool doesnt check if the pool exits (e.g. it doesnt check if the resulting pool !=0)
Other functions use the results of getPool and do followup actions.
For example createSynth checks isCuratedPool(_pool) == true; if somehow isCuratedPool(0) would set to be true, then further actions could be done.
As far as I can see no actual problem occurs, but this is a dangerous construction and future code changes could introduce vulnerabilities.
Additionally the reverts that will occur if the result of getPool==0 are perhaps difficult to troubleshoot.
Recommend In function getPool add something like:
Note: the functions createPoolADD and createPool also have to be changed, to use a different way to verify the pool doesnt exist.
