This could probably be simplified to `$success = Submission::isSubmitted($user_id, $quiz_id);` since the function is just returning a boolean (right?).