change condition to check for binary existence, remove use of which