public function get_source($id) { $sources = $this->get_registered_sources(); if (!isset($sources[$id])) { return false; } return $sources[$id]; }