Check for s3 key before proceeding