Postgresql Check If Column Is Empty In Javascript What Is A Block