added actionBarExists method