Corrected API check