changed JSON parse to isset()