Face palm fixed issue #3 the type was not being handled therefore it was always true