public static function checkIfVotedAnswer($users_id, $answer_id) { $vote = Votes::findFirst("users_id = '{$users_id}' AND answers_id = '{$answer_id}'"); return $vote != false; }