remove duplication in property declarations setter, moved if >ios7 to encapsulate the whole function