Add extra check to couchbase view