Check metadata not nil