Had to create a local boolean instead of just return truthy/falsy at ever check