Use isset() to check for initialized instances instead of == null comparison