Postgresql Check If Column Is Empty In Javascript W3schools