Updated unapprove hook

Added in check to see if commits exist.