Javascript Check If Object Not Undefined Or Null