DEV: Add function to throw exception if requirement not verifed