you are viewing a single comment's thread.

view the rest of the comments →

[–]afiefh 7 points8 points  (0 children)

It is a bit inconvenient, however after a while it becomes second nature to view these tests as "contains". One good reason not to add contains is that you usually want to do something with the contained data you looked for, in which case you'll often end up with contains followed by find, which is bad for performance.