Select int function acting rogue

I’ve spent a decent amount of time until I have figured out why my code is failing. The reason is something un-explicable to me:


How is this even possible? Condition resulting to true but select node returns false option?