This is great, but it should be if ($class->install()) as per the style guide.