Added a check to make sure method exists on state