select() ->where('PRJ_UID', '=', $proUid); $result = $query->get()->values()->toArray(); return empty($result) ? 0 : 1; } }