better syntax for bootloader check