Fixed and optimized IsPinnedToStartMenu