efi_directory is always set to a value (defaults to /boot/efi) even on a BIOS/CSM/Legacy-only system. The function is guarded elsewhere to prevent installation of a bios bootloader on UEFI.