Remove unnecessary usage of Hash::check()
Set element to null, fix class for string template, remove another Hash call