Check for class availability properly