improve throughput of actionsFor by 10%-20%

hasOwnProperty is unfortunately slow so we should guard it with checks that the property is even something like what we want first