Added localhost and IP boolean helper methods