```isset()``` shouldn't be used for testing if a variable is not null but only if a variable or array entry has been defined. ```$logger``` variable here always exists.