public function has($tid) { foreach ($this->textures as $item) { if ($item['tid'] == $tid) { return true; } } return false; }