AVOptions: cleanup some code (use isEmpty)