Removed unnecessary check on heap