checking if class doesnt exist before declaring it