Php Find If Array Key Exists Expects Parameter 1 To Be Mysqli Result