Frames improvements

NPE prevention; property setters to return $this