more elegant way of checking nitrogen binary