Php Array Key Not Exists Postgresql