fixed isset and empty problems with magic class variables