refactored #is_up into a public method