I have an variable and it can be undefined how to test that object present and method return value If I do it in two lines
const object: Object|undefined exp