public function del_artists($artists) { if (!is_array($artists)) { $tmp = $artists; $artists = array($tmp); } foreach ($artists as $artist) { $object = Artists::get_by_name($artist); $object->del_from_track($this); } }