use boolean string and remove redundant else

wondering if this will fix Case:66266, though again, can't reproduce the root cause of how that url gets generated