Php If Variable Not Defined Javascript Interview Question