You can simplify this by not using both >= and -1