added class-check to avoid fatal errors if composer not ran