fixed box checking for nil case