def METHOD_NAME(
    cls, base_layer: interfaces.layers.DataLayerInterface, offset: int = 0
) -> bool:
    try:
        header_data = base_layer.read(offset, cls._header_struct.size)
    except exceptions.InvalidAddressException:
        raise ElfFormatException(
            base_layer.name,
            f"Offset 0x{offset:0x} does not exist within the base layer",
        )
    (magic, elf_class, elf_data_encoding, elf_version) = cls._header_struct.unpack(
        header_data
    )
    if magic != cls.MAGIC:
        raise ElfFormatException(
            base_layer.name, f"Bad magic 0x{magic:x} at file offset 0x{offset:x}"
        )
    if elf_class != cls.ELF_CLASS:
        raise ElfFormatException(
            base_layer.name, f"ELF class is not 64-bit (2): {elf_class:d}"
        )
    # Virtualbox uses an ELF version of 0, which isn't to specification, but is ok to deal with
    return True