check for the correct class when checking against it already existing