Check and make sure that your accessor method is really returning a value and not null. If the value is null, nothing will display.
BTW, here's a useful hint:
That should make your element code a little tidier. The "empty" operator does exactly the same
test as your explicit logic does.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.