checking for required hash in args