added isset checks around all the $_GET variables initialization to reduce noise in the php error_log
fixed one of the keys from $row that wasn’t upper case