Added checkIsUploaded function