Added check for has_voted
wrapper for has voted function