def mifareclassic_IsFirstBlock ( uiBlock: int):
    """
      Indicates whether the specified block number is the first block
      in the sector (block 0 relative to the current sector) 
    """

    # Test if we are in the small or big sectors
    if (uiBlock < 128):
        return ((uiBlock) % 4 == 0)
    else:
        return ((uiBlock) % 16 == 0)