No need to throw an exception for empty get_rules
Fix out of bounds arguments
Add a test for the $amount argument
Fixes / Changes on using the entity