Conditional Parsing Issues
This looks like a situation where you might get away with just using Twig's default filter:

{{ entry.metaTitle|default(title|default(siteName)) }}


It works even with undefined or empty strings, and methods that don't exist on objects that might not be defined themselves.