Conditional checks prior to requiring library