I think this one should be $pageUid = $targetPage['uid'];