return $foo || die, not return $foo or die
changelog
Bug report
v1.2.1

 [BUG FIXES]
 - Was using 'return $foo or die' instead of 'return $foo || die'.

 [STATISTICS]
 - code churn: 2 files changed, 11 insertions(+), 4 deletions(-)