minor fix to checkifintable function