forgot adding guard operator on undefined attribute