refactor(src/angular) adds a boolean helper function to check for private object