Merge "Add public method to check if the partition is empty." into lmp-dev