Update has_flags.rb

use latest code from jovoto.com app