Revert "Removed unneeded checks."
This reverts commit 53b0a3f8c35d81aca8d1081218b06590fb876928.
*slaps himself* Don't touch what's working, chucklefuck.