Added check for file API