I might be mistaken, but on first impression this whole ```else:``` block is never used or required?
The function is never sent bounds that follow this branch?