dont check if its not undefined and then if its undefined again