def did_composer_install(dir):
 lockFile = '{0}/vendor'.format(dir)
 if os.path.exists(lockFile):
  return True
 return False

def did_composer_install ( dir ) : lockFile = '{0}/vendor' . format ( dir ) if os . path . exists ( lockFile ) : return True return False
test to see if the vendor directory exists in this directory dir directory location of the composer .