Better handle boolean and if value is None. postgres.version returns None if postgres isn't running