rename hasKey to hasBinary