Check boot is defined before using it