Fixed bug causing function to always return true
p4#: 21149