Check for id class to prevent crashes (untested)