Use attribute to check the condition rather than the property. Signed-off-by: Eric Callahan <arksine.code@gmail.com>