Issue #262 fixed: convert if condition to assert
Fix addendum - only one variable needed, now
Merge pull request #285 from TNick/processActionAvailability

Issue #262 fixed: convert if condition to assert