Php 1093 refactor cursor logic

It is for NULL() i believe, but not for _TRUE and _FALSE. (beats me why)