Postgres Check If Table Has Rows Exercise