Updated to AS3 2.0.4 functionality, use isset(), is_null() and empty() instead of null comparison