Backport PW_TYPE_NOT_EMPTY flag