Added $returnFirst option to getFromProviders method