Replacing rubyism with better PHP.