Remove framework file from examples
Switch isDefined() to !isNull() test