This needs an extra db-query. Could you first get the Version from the database and then check, if it is the active version by comparing the ids?