Cleaned up setPosition check.