'Returns whether this xblock has a published version (whether it\'s up to date or not).'

def has_published_version(self, xblock):

    return (self._get_head(xblock, ModuleStoreEnum.BranchName.published) is not None)
