Port MiscUtil.isNonEmpty to master