replace value check of argument by existence check